package com.cmcc.zysoft.infocollection.model;

// Generated 2013-8-7 20:24:35 by Hibernate Tools 3.2.2.GA

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * Channel generated by hbm2java
 */

@Entity
@Table(name = "tb_b_channel")
public class Channel implements java.io.Serializable {

	private static final long serialVersionUID = 4742468466577287098L;
	private String channelId;
	private String channelName;
	private String mark4;
	private String mark3;
	private String mark2;
	private String mark1;
	private Set<Industry> industries = new HashSet<Industry>(0);

	public Channel() {
	}

	public Channel(String channelId) {
		this.channelId = channelId;
	}

	public Channel(String channelId, String channelName, String mark4,
			String mark3, String mark2, String mark1, Set<Industry> industries) {
		this.channelId = channelId;
		this.channelName = channelName;
		this.mark4 = mark4;
		this.mark3 = mark3;
		this.mark2 = mark2;
		this.mark1 = mark1;
		this.industries = industries;
	}

	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "channel_id", unique = true, nullable = false, length = 32)
	public String getChannelId() {
		return this.channelId;
	}

	public void setChannelId(String channelId) {
		this.channelId = channelId;
	}

	@Column(name = "channel_name", length = 200)
	public String getChannelName() {
		return this.channelName;
	}

	public void setChannelName(String channelName) {
		this.channelName = channelName;
	}

	@Column(name = "mark4", length = 200)
	public String getMark4() {
		return this.mark4;
	}

	public void setMark4(String mark4) {
		this.mark4 = mark4;
	}

	@Column(name = "mark3", length = 200)
	public String getMark3() {
		return this.mark3;
	}

	public void setMark3(String mark3) {
		this.mark3 = mark3;
	}

	@Column(name = "mark2", length = 200)
	public String getMark2() {
		return this.mark2;
	}

	public void setMark2(String mark2) {
		this.mark2 = mark2;
	}

	@Column(name = "mark1", length = 200)
	public String getMark1() {
		return this.mark1;
	}

	public void setMark1(String mark1) {
		this.mark1 = mark1;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "channel")
	public Set<Industry> getIndustries() {
		return this.industries;
	}

	public void setIndustries(Set<Industry> industries) {
		this.industries = industries;
	}

}
